package cn.hnevc.xiaohui;
/*
 * 数组元素的拷贝
 */
import javax.swing.text.StyledEditorKit.ForegroundAction;
public class ExampleTest20 {

public static void main(String[] args) {
		// TODO 自动生成的方法存根
   int[] fromArray= {101,102,103,104,105,106};//源数组
   int[] toArray= {201,202,203,204,205,206,207};//目标数组
   System.arraycopy(fromArray,3,toArray,4,5);//拷贝数组元素
   for(int i=0;i<toArray.length;i++) {
	   System.out.println(i+":"+toArray[i]);
   }
	}

}
